<?php
/**
 * Created by PhpStorm.
 * User: 47557
 * Date: 2017/4/12
 * Time: 11:08
 */

namespace app\db\controller;


use think\Controller;
use think\Db;
use think\Exception;

class Wordcontrol extends Dbcommoncontrol
{
   protected $DbName="WordInf";
    function  GetWordList()
    {
        try{
           $str_id= $_POST['id'];
           $str_id= explode(",", $str_id);

           foreach ($str_id as $key=>$value)
           {
               $str_id[$key]=Db::table($this->DbName)->where('W_Id','=',$value)->find();
           }
            return json($str_id);
        }

     catch (Exception  $ex)
     {
         return "error";

     }
    }
}